<?php
class Label_model extends CI_Model{
	var $name;
	var $alias;

	function __construct(){
		parent::__construct();
	}

	function findById($labelId){
		$this->db->where('id', $labelId);
		$row = $this->db->get('label')->row_array();
		return $row;
	}
	
	function  findAll(){
		$rows = $this->db->get('label')->result_array();
		return $rows;
	}
	

}